*{
    margin: 0;
    padding: 0;
}
body{
background-color: #78e08f;

}
.container{
    margin: auto;
    position: absolute;
    top:  50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 238px;
}
#l-ball{
    background-color: #fff;
    position: relative;
    z-index: 50;
    animation: close 4s ease infinite;
}
@keyframes close{
    0% {
        transform: translate(0px)
    }
    20% {
        transform: translate(20px)
    }
    35%{
        transform: translate(20px)
    }
    55%{
        transform: translate(0px)
    }
    100%{
        transform: translate(0px)
    }
}
#r-ball{
    background-color: #fff;
    position: relative;
    z-index: 40;
    animation: close-l 6s ease infinite;

}
@keyframes close-l{
    0% {
        transform: translate(0)
    }
    50% {
        transform: translate(0px)
    }
    60% {
        transform: translate(10px) rotate(15deg);
    
    }
    67.5%{
        transform: translate(-30px) rotate(-15deg);
    }
    75%{
        transform: translate(-10) rotate(0)
    }
    100% {
        transform: translate(0px)
    }
}
.face-r{
    left: 0px;
    top: 37px;
}


.kiss-m{
    position: absolute;
    left: 20px;
    top: 22px;
    opacity: 0;
    animation: kiss-m 6s ease infinite;
}
    @keyframes kiss-m {
        0% {
          opacity: 0;
        }
        55% {
          opacity: 0;
        }
        55.1% {
          opacity: 0;
        }
        66% {
          opacity: 1;
        }
        66.1% {
          opacity: 0;
        }
      }

.kiss{
    width: 14px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    border-left: 5px solid #000;
    animation: kiss-m 6s ease infinite;
}

.ball
{
    width: 100px;
    height: 100px;
    border: 8px solid #000;
    border-radius: 50%;
    display: inline-block;
    vertical-align: top; 
     
}
.face:after{

    content: '';
    width: 18px;
    height: 8px;
    background: #badc58;
    position: absolute;
    left: -5px;
    top: 20px;
    border-radius: 50%;
}
.face:before{
content: '';
width: 18px;
height: 8px;
background-color: #badc58;
position: absolute;
right: -8px;
top: 20px;
border-radius: 50%;
}
.face-r:after{
    width: 10px;
    height: 10px;
    left: 5px;
}
.face-r:before{
    width: 10px;
    height: 10px;
    right: -4px;
}
.eye{
width: 15px;
height: 14px;
border-radius: 50%;
border-bottom: 5px solid #000;
position: absolute;

}
.eye-l{
left: 10px;

}
.eye-r{
right: 5px;
    
}
.eye-r-p{
    border-top: 5px solid #000;
    border-bottom: 0px solid;
}
.mouth{
    width: 30px;
    height: 14px;
    border-bottom: 5px solid #000;
    border-radius: 50%;
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    transform: translate(3px);
    margin: auto;
}
.mouth-r{
    width: 30px;
    height: 14px;
    position: absolute;
    animation: mouth 6s ease infinite;
}
@keyframes mouth {
    0% {
      opacity: 1;
    }
    55% {
      opacity: 1;
    }
    55.1% {
      opacity: 1;
    }
    66% {
      opacity: 0;
    }
    66.1% {
      opacity: 1;
    }
  }
.face{
    width: 70px;
    height: 30px;
    position: absolute;
    right: 0;
    top: 30px;
    border-top-right-radius: 15px;
}